//
//  AudioPlayer.h
//  ChatDemo
//
//  Created by 陈石 on 15/5/13.
//  Copyright (c) 2015年 陈石. All rights reserved.
//

@import Foundation;
@import AVFoundation;

@protocol audioPlayerDelegate <NSObject>

- (void)load;

- (void)play;

- (void)finish;

@end

@interface AudioPlayer : NSObject
{
}

@property(strong, nonatomic) AVAudioPlayer            *player;
@property(assign, nonatomic) id <audioPlayerDelegate> delegate;

+ (AudioPlayer *)sharedInstance;

- (void)playSongWithData:(NSData *)songData;

- (void)stopSound;

@end
